package com.kaizige.realtor.Dao;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;

@Repository
public class payDao {
	@Autowired
	houseOwnerDao hod;
	@Autowired
	managerDao md;
	@Autowired
	tenantDao td;
	
	@Transactional
	public void paySeeHou(String user){
		md.getSeeHou();
		td.paySeeHou(user);
	}
	@Transactional
	public void payRent(String user){
		md.getRent();
		hod.payRent(user);
	}
}
